<template>
	<view style="height: 100%;width: 100%;">
		<view v-if="haveData" class="card" v-for="(item1,index1) in list" :key="index1">
			
			<view class="content">
				<view class="title">{{item1.name}}</view>
				<view class="interval">
					<view class="iconfont icon-shijian" style="margin-right: 2rpx;"></view>
					<view>时间：</view>
					<view>{{item1.interval}} </view>
				</view>
				<view class="place">
					<view class="iconfont icon-didian"></view>
					<view>地点：</view>
					<view>{{item1.place}}</view>
				</view>
			</view>
			<view class="commom over">
				<view>已结束</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "countDownCard",
		props: {
			list: {
				type: Array,
				default () {
					return [];
				},
			},
		},

		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.card {
		width: 100%;
		// height: 230rpx;
		display: flex;
		// margin: 20rpx;
		background-color: #FFFFFF;
		box-shadow: 1rpx 1rpx 10rpx #D9D9D9;
		border-radius: 25rpx;
		margin-bottom: 25rpx;
		position: relative;

		.content {
			flex: 2.8;
			height: 100%;
			text-align: center;

			.title {
				margin-top: 10rpx;
				width: 100%;
				font-size: 35rpx;
				font-weight: 700;

			}

			.interval {
				display: flex;
				text-align: center;
				margin-left: 20rpx;
				margin-top: 20rpx;
				font-size: 30rpx;
				color: #6E6E6E;
			}

			.place {
				display: flex;
				margin: 25rpx 0rpx 25rpx 20rpx;
				color: #6E6E6E;
			}
		}

		.commom {
			flex: 1;
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 10rpx;
			color: #FFFFFF;
			border-top-right-radius: 25rpx;
			border-bottom-right-radius: 25rpx;
			text-align: center;
		}

		.over {
			font-size: 34rpx;
			background-color: #B3B3B3
		}

		.time {
			flex: 1;
			background-color: #f25753;

			.number {
				flex: 4;
				font-size: 80rpx;
				// line-height: 230rpx;
			}

			.text {
				flex: 1;
				font-size: 35rpx;
				// line-height: 260rpx;
			}
		}
	}
</style>
